Skip to content

Lookup Table (2D)

Symbol

Description

Lookup Table (2D)

The Lookup Table (2D) control model generates output values based on a grid of input values (X, Y) and corresponding output values defined in a Table matrix. The dimensions of the Table are determined by the lengths of X and Y vectors, resulting in a matrix of dimensions M x N.

The Table matrix consists of M x N combinations of X and Y input pairs, where each combination corresponds to a specific output value. Ensure that the values in the X and Y vectors are strictly increasing to maintain consistent interpolation results.

For input values (X, Y) falling between defined grid points, the output is calculated using bilinear interpolation. This approach ensures smooth transitions between specified output values across the grid.

When the input values (X, Y) are outside the bounds of the defined grid, bilinear extrapolation is employed to compute the output value. This maintains a consistent behavior of the control model for out-of-bounds inputs.

Important

The Lookup Table (2D) control model also supports importing grid data from a .csv file. To do this, select the "Load From File..." option and choose the desired .csv file containing the grid data.

Library

Control > Table

Parameters

Property Display Name Parameter Type Description
Table Look-up Table DoubleMatrixParameter Matrix of output values LUT(X,Y)
XValues X Input Values DoubleArrayParameter Vector of input values (X)
YValues Y Input Values DoubleArrayParameter Vector of input values (Y)
SamplingTime Sampling Time [s] DoubleParameter Sampling Time

Pins

Property Pin Name Type Description
InX InX ControlIn Input X
InY InY ControlIn Input Y
Out Out ControlOut Output

Default Size

Width Height
4 4